<template>
    <view class="container">
        <intake-nav-bar title="支付成功" dark :fixed="true" />
        <view class="success-message">
            <image class="img" :src="icon"></image>
            <view class="success-text">支付成功</view>
        </view>
        <view class="shipping-info" @click="choice">
            返回
        </view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            icon: this.$common.imgUrl() + '/images/success@2x.png',
            // 您可以在这里添加更多的数据绑定
        };
    },
    methods: {
        choice() {
            uni.reLaunch({
                url: '/pages/index/home'
            });
        }
    }
};
</script>

<style lang="scss">
.container {
    width: 100%;
    height: 100vh;
    // text-align: center;
    padding: 20px;
    background: linear-gradient(to bottom, #E3EAFB 0%, transparent 100%);
}

.success-message {
    width: 690rpx;
    height: 253rpx;
    background-color: #fff;
    border-radius: 20rpx;
    font-size: 24px;
    font-weight: bold;
    margin: 24rpx 0 20px 0;
    padding-top: 56rpx;

    image {
        width: 84rpx;
        height: 84rpx;
        margin: 0 303rpx;
    }

    .success-text {
        color: #212B3D;
        font-size: 28rpx;
        text-align: center;
    }

    .amount {
        font-size: 81rpx;
        color: #212B3D;
        margin-bottom: 20px;
        text-align: center;
        margin-left: -30rpx;
    }

    .small {
        font-size: 41rpx;
    }

    .payment-method {
        font-size: 24rpx;
        margin-top: 100rpx;
        font-weight: 400;
    }

    .left {
        float: left;
        margin-left: 38rpx;
    }

    .right {
        float: right;
        margin-right: 38rpx;
    }

}

.shipping-info {
    width: 690rpx;
    height: 77rpx;
    line-height: 77rpx;
    border-radius: 10rpx;
    background-color: #034EFD;
    text-align: center;
    // font-weight: 600;
    font-size: 32rpx;
    color: #FDFEFF;
}
</style>